package com.zhx.demo.service;

import com.zhx.demo.entity.Leave;

import java.util.List;

/**
 * 请假操作服务
 *
 * @author zhx
 * @create 2017-11-15 10:23
 **/
public interface LeaveService {

    /**
     * 开始请假业务
     * @return
     */
    boolean startLeave(Leave leave,String userId);

    /**
     * 获取所有请假单据
     * @return
     */
    List<Leave> getLeaveList(String userId);

    /**
     * 获取请假详情
     * @return
     */
    Leave getLeaveDetail(String leaveId);
}
